package com.frcdi.qms.vo;

import com.frcdi.qms.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author LoveMyOrange
 * @create 2022-10-14 23:47
 */
@Data
@ApiModel("我发起页面 需要返回给前端的VO")
public class HistoryProcessInstanceVO {
    @ApiModelProperty("流程实例id")
    private String processInstanceId;

    @ApiModelProperty("审批类型")
    private String processDefinitionName;

    @ApiModelProperty("发起人")
    private SysUser startUser;

    @ApiModelProperty("发起人(带icon)")
    private SysUser users;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("提交时间")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("当前节点")
    private String currentActivityName;

    @ApiModelProperty("审批状态")
    private String businessStatus;

    @ApiModelProperty("耗时")
    private String duration;
}
